{% extends 'teacher_base.html' %}

{% block context %}
    <style>
        table,table tr th, table tr td { border:1px solid #0094ff; }
        table { width: 200px; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse;}
    </style>
    <form action="" method="post">
        {% csrf_token %}
        <table style="margin-left: 300px">
            <thead>
                <tr>
                    <th>问题</th>
                    <th>回答</th>
                    <th>得分</th>
                </tr>
            </thead>
            <tbody>
                {% for paperinfo in paperinfos %}
                    <tr>
                        <td>{{ paperinfo.question|safe }}</td>
                        <td>{{ paperinfo.answer|safe }}</td>
                        <td><input type="number" name="{{ paperinfo.que_id }}" value="{{ paperinfo.score }}"></td>
                    </tr>
                {% endfor %}
                <tr>
                    <td colspan="3" style="text-align: right"><input type="submit"  value="提交"></td>
                </tr>
            </tbody>
        </table>
    </form>
{% endblock %}